package io.github.wslxm.springbootplus2.manage.sys.model.query;


import io.github.wslxm.springbootplus2.core.base.model.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import lombok.ToString;

import java.util.List;
import java.util.Set;

/**
 *   用户
 *
 * @author 王松
 * @WX-QQ 1720696548
 * @date 2019/11/14 21:06
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysUserQuery", description = "用户表")
public class SysUserQuery extends BaseQuery {

    private static final long serialVersionUID = 4934650100711613453L;

    @Schema(title = "id")
    private String id;
    @Schema(title = "用户 ids")
    private List<String> ids;
    @Schema(title = "账号/用户名")
    private String username;
    @Schema(title = "电话")
    private String phone;
    @Schema(title = "昵称")
    private String fullName;
    @Schema(title = "禁用（0-否，1-是）")
    private Integer disable;
    @Schema(title = "角色ids-逗号分隔")
    private String roleIds;
    @Schema(title = "部门ids")
    private String depIds;
    @Schema(title = "职位（字典code）")
    private Integer position;
    @Schema(title = "注册开始时间/结束时间，逗号分割")
    private String regTime;
    @Schema(title = "最后登录开始时间/结束时间，逗号分割")
    private String endTime;
    @Schema(title = "是否在线 true-是 false-否")
    private Boolean isOnline;
    @Schema(title = "在线用户 ids, 当 isOnline=true时, page 查询方法自动设置值")
    private Set<String> onlineUserIds;
}
